<template id="live">
<div>
    <section class="live-section">
  <div class="live-bigwrap">
    <div class="live-wrap">
      <div class="live-nav">
        <mt-navbar v-model="selected">
          <mt-tab-item id="1">关注<span></span></mt-tab-item>
          <mt-tab-item id="box2">推荐<span></span></mt-tab-item>
          <mt-tab-item id="3">产地好货<span></span></mt-tab-item>
          <mt-tab-item id="4">居家日用<span></span></mt-tab-item>
          <mt-tab-item id="5">服饰穿搭<span></span></mt-tab-item>
          <mt-tab-item id="6">食品生鲜<span></span></mt-tab-item>
          <mt-tab-item id="7">新店有礼<span></span></mt-tab-item>
        </mt-navbar>
      </div>

      <!-- tab-container -->
      <mt-tab-container v-model="selected">
        <mt-tab-container-item id="1">
            <h1>休息中~</h1>
        </mt-tab-container-item>
        <mt-tab-container-item id="box2">
            <div class="live-con-wrap">
                <ul>
                    <li v-for="(v,i) in list01">
                        <div class="left">
                            <img :src="v.img01" alt="">
                            <div class="top">
                                <span class="onespan">
                                    <img :src="v.img02" alt="">
                                </span>
                                <span class="twospan">{{v.span01}}</span>
                            </div>
                            <span class="thressspan">
                                <img :src="v.img03" alt="">
                                <p>{{v.p01}}</p>
                            </span>
                        </div>
                        <div class="right">
                            <p class="right-one">{{v.p02}}</p>
                            <p class="right-two">{{v.p03}}</p>
                            <div class="right-thress">
                                <div class="right-thress-left">
                                    <img :src="v.img04" alt="">
                                    <span>{{v.span02}}</span>
                                </div>
                                <div class="right-thress-right">
                                    <img :src="v.img05" alt="">
                                    <span>{{v.span03}}</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </mt-tab-container-item>
        <mt-tab-container-item id="3">
            <div class="live-con-wrap">
                <ul>
                    <li v-for="(v,i) in list01">
                        <div class="left">
                            <img :src="v.img01" alt="">
                            <div class="top">
                                <span class="onespan">
                                    <img :src="v.img02" alt="">
                                </span>
                                <span class="twospan">{{v.span01}}</span>
                            </div>
                            <span class="thressspan">
                                <img :src="v.img03" alt="">
                                <p>{{v.p01}}</p>
                            </span>
                        </div>
                        <div class="right">
                            <p class="right-one">{{v.p02}}</p>
                            <p class="right-two">{{v.p03}}</p>
                            <div class="right-thress">
                                <div class="right-thress-left">
                                    <img :src="v.img04" alt="">
                                    <span>{{v.span02}}</span>
                                </div>
                                <div class="right-thress-right">
                                    <img :src="v.img05" alt="">
                                    <span>{{v.span03}}</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </mt-tab-container-item>
        <mt-tab-container-item id="4">
            <div class="live-con-wrap">
                <ul>
                    <li v-for="(v,i) in list01">
                        <div class="left">
                            <img :src="v.img01" alt="">
                            <div class="top">
                                <span class="onespan">
                                    <img :src="v.img02" alt="">
                                </span>
                                <span class="twospan">{{v.span01}}</span>
                            </div>
                            <span class="thressspan">
                                <img :src="v.img03" alt="">
                                <p>{{v.p01}}</p>
                            </span>
                        </div>
                        <div class="right">
                            <p class="right-one">{{v.p02}}</p>
                            <p class="right-two">{{v.p03}}</p>
                            <div class="right-thress">
                                <div class="right-thress-left">
                                    <img :src="v.img04" alt="">
                                    <span>{{v.span02}}</span>
                                </div>
                                <div class="right-thress-right">
                                    <img :src="v.img05" alt="">
                                    <span>{{v.span03}}</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </mt-tab-container-item>
        <mt-tab-container-item id="5">
            <div class="live-con-wrap">
                <ul>
                    <li v-for="(v,i) in list01">
                        <div class="left">
                            <img :src="v.img01" alt="">
                            <div class="top">
                                <span class="onespan">
                                    <img :src="v.img02" alt="">
                                </span>
                                <span class="twospan">{{v.span01}}</span>
                            </div>
                            <span class="thressspan">
                                <img :src="v.img03" alt="">
                                <p>{{v.p01}}</p>
                            </span>
                        </div>
                        <div class="right">
                            <p class="right-one">{{v.p02}}</p>
                            <p class="right-two">{{v.p03}}</p>
                            <div class="right-thress">
                                <div class="right-thress-left">
                                    <img :src="v.img04" alt="">
                                    <span>{{v.span02}}</span>
                                </div>
                                <div class="right-thress-right">
                                    <img :src="v.img05" alt="">
                                    <span>{{v.span03}}</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </mt-tab-container-item>
        <mt-tab-container-item id="6">
            <div class="live-con-wrap">
                <ul>
                    <li v-for="(v,i) in list01">
                        <div class="left">
                            <img :src="v.img01" alt="">
                            <div class="top">
                                <span class="onespan">
                                    <img :src="v.img02" alt="">
                                </span>
                                <span class="twospan">{{v.span01}}</span>
                            </div>
                            <span class="thressspan">
                                <img :src="v.img03" alt="">
                                <p>{{v.p01}}</p>
                            </span>
                        </div>
                        <div class="right">
                            <p class="right-one">{{v.p02}}</p>
                            <p class="right-two">{{v.p03}}</p>
                            <div class="right-thress">
                                <div class="right-thress-left">
                                    <img :src="v.img04" alt="">
                                    <span>{{v.span02}}</span>
                                </div>
                                <div class="right-thress-right">
                                    <img :src="v.img05" alt="">
                                    <span>{{v.span03}}</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </mt-tab-container-item>
        <mt-tab-container-item id="7">
            <div class="live-con-wrap">
                <ul>
                    <li v-for="(v,i) in list01">
                        <div class="left">
                            <img :src="v.img01" alt="">
                            <div class="top">
                                <span class="onespan">
                                    <img :src="v.img02" alt="">
                                </span>
                                <span class="twospan">{{v.span01}}</span>
                            </div>
                            <span class="thressspan">
                                <img :src="v.img03" alt="">
                                <p>{{v.p01}}</p>
                            </span>
                        </div>
                        <div class="right">
                            <p class="right-one">{{v.p02}}</p>
                            <p class="right-two">{{v.p03}}</p>
                            <div class="right-thress">
                                <div class="right-thress-left">
                                    <img :src="v.img04" alt="">
                                    <span>{{v.span02}}</span>
                                </div>
                                <div class="right-thress-right">
                                    <img :src="v.img05" alt="">
                                    <span>{{v.span03}}</span>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </mt-tab-container-item>
      </mt-tab-container>
    </div>
  </div>
  </section>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      selected: "box2",
      list01:''
    };
  },
  mounted() {
    this.$http
      .get("./data/live.json")
      .catch(function(error) {
        console.log(error);
      })
      .then(res => {
        (this.list01 = res.data.list01)
      });
  }
};
</script>
 <style>
 h1{
     text-align: center;
     margin-top: 10px;
 }
 .live-section{
     height: calc(100vh - 40.8px);
     overflow-y: auto;
 }
.live-nav .mint-navbar {
  width: 150%;
  background: none;
}
.live-nav .mint-navbar .mint-tab-item.is-selected{
    color: #fff;
    font-weight: 700;
    border-bottom:none;
}
.live-nav .mint-navbar .mint-tab-item.is-selected span{
    display: block;
}
.live-nav .mint-navbar .mint-tab-item{
    position: relative;
}
.live-nav .mint-navbar .mint-tab-item.is-selected .mint-tab-item-label{
    font-size: 1rem;
    margin-top: -4px;
}
.live-wrap .mint-tab-container-wrap{
    margin-top: 50px;
}
</style>
 
<style scoped>
.live-bigwrap {
}
.live-nav {
    width: 100%;
  overflow-y: auto;
  background: red;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}
.live-nav span{
    display: block;
    width: 1rem;
    height: 0.2rem;
    background: #ffd379;
    border-radius: 0.1rem;
    position: absolute;
    bottom: 5px;
    left: calc(50% - 0.5rem);
    display: none;
}
.live-con-wrap {
    margin: 0 10px;
}
.live-con-wrap ul{
    
}
.live-con-wrap li{
    width: 100%;
    display: flex;
    margin-top: 10px;
    
}
.live-con-wrap li .left{
    margin-right: 5px;
    position: relative;
}
.live-con-wrap li>div{
    width: 50%;
}
.live-con-wrap img{
    width: 100%;
}
.live-con-wrap li span{
    /* display: block; */
    
}
.live-con-wrap li .left>img{
    border-radius: 0.6rem;
}
.live-con-wrap li .left .top{
    background: rgba(0,0,0,.4);
    box-shadow: 0 0.1rem 0.2rem 0 rgba(0,0,0,.05);
    display: flex;
    position: absolute;
    top: -1px;
    left: 0px; 
    border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
    height: 1.1rem;
}
.live-con-wrap li .left .twospan{
    font-size: 0.5rem; 
    line-height: 1.1rem;
    text-align: center;
    color: #fff;
    padding-left: 5px;
    padding-right: 3px; 
}
.live-con-wrap li .left .thressspan{
    display: flex;
    position: absolute;
    bottom: 20px;
    right: 0px;
    font-size: 0.5rem; 
    line-height: 1.1rem;
    text-align: center;
    color: #fff;
}
.live-con-wrap li .left .thressspan p{
    padding-left: 5px;
}
.live-con-wrap li .left .thressspan img{
    width: 20%;
    height: 20%;
    border-radius: 50%;
}
.live-con-wrap li .left .onespan img{
    border-radius: 0.6rem;
}
.live-con-wrap li .right .right-one{
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    padding: 10px 5px 10px 5px;
}
.live-con-wrap li .right .right-two{
    font-size: 0.6rem;
    color: #999;
    padding: 5px 5px 10px 5px;
}
.live-con-wrap li .right .right-thress-left{
    position: relative;
    overflow: hidden;
}
.live-con-wrap li .right .right-thress-right{
    position: relative;
}
.live-con-wrap li .right .right-thress{
    display: flex;
}
.live-con-wrap li .right .right-thress span{
    display: block;
    position: absolute;
    bottom: 4px;
    left: 0px;
    color: #fff;
    font-size: 0.6rem;
    width: 100%;
    text-align: center;
    background: linear-gradient(0deg,rgba(0,0,0,.5),transparent);
    border-radius: 0px 0px 0.45rem 0.45rem;
}
.live-con-wrap li .right .right-thress img{
    border-radius: 0.45rem;
}
.live-con-wrap li .right .right-thress>div{
    width: 50%;
    margin: 5px;
}
</style>